<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../../js库/mock.js"></script>
    <script src="../../js库/vue.js"></script>
    <title></title>
    <style>
        /* 
        元素显示模式转换 一个模式的元素需要另外一个模式的特性

            比如 <a>(行内元素 默认未文本范围)标签增加触发范围
                     设置css样式 display:block; 行内元素转块级元素
                      display: inline; 块级元素转行内元素
                         display: inline-block; 行内元素或块级元素转行内块元素
        */
        a {
            /* width: 50px; */
            height: 50px;
            background-color: green;
            display: block;
        }
        div.aa {
            width: 300px;
            background-color: pink;
            display: inline;
        }
        .inlineblock {
            width: 300px;
            background-color: purple;
            display: inline-block;
        }
    </style>
</head>

<body>
    <div id="root">
        <h1>显示模式转换</h1>
        <a  href="http://www.baidu.com/" target="_blank">百度</a>
        <a  href="http://www.baidu.com/" target="_blank">百度</a>
        <a  href="http://www.baidu.com/" target="_blank">百度</a>

        <div class="aa">块转行</div>
        <div class="aa">块转行</div>
        <div class="aa">块转行</div>
        <h1>行内块</h1>
      <div class="inlineblock">你好行内块</div>
      <div class="inlineblock">你好行内块</div>
      <div class="inlineblock">你好行内块</div>
    </div>
</body>
<script>
    new Vue({
        el: '#root',
        data() {
            return {
            }
        },
    })
</script>

</html>